//
//  SPSelectScrollView.h
//  penzer
//
//  Created by 还带大道 on 2018/11/6.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SPSelectScrollView : UIView
@property (nonatomic,weak) UIScrollView *scrollView;
@property (nonatomic,weak) UIView *indicatorBar;
@property (nonatomic,strong) NSMutableArray<UIButton *> *btns;

/******************** item配置 ***************************/
@property (nonatomic,strong) NSArray<NSString *> *items;
@property (nonatomic,strong) UIColor *indicatorBarColor;
@property (nonatomic,assign) CGFloat indicatorBar_height;
@property (nonatomic,strong) UIColor *item_textColor_nomal;
@property (nonatomic,strong) UIColor *item_textColor_selected;
@property (nonatomic,strong) UIFont *item_font_nomal;
@property (nonatomic,strong) UIFont *item_font_selected;
@property (nonatomic,assign) CGFloat item_margin;
/** 指示条和文字的左右边距 */
@property (nonatomic,assign) CGFloat item_inset;
/** 第一个item与父控件水平方向的间距 */
@property (nonatomic,assign) CGFloat firstItem_leftMargin;
/** 平分 默认NO*/
@property (nonatomic,assign) BOOL average;
/******************** item配置 ***************************/



- (void)selectedWithIndex:(NSInteger)index;
@property (nonatomic,copy) void(^btnOnClickBlock)(NSInteger index);

@end
